const children = [
  {
    name: 'ProductList',
    path: 'list',
    component: () => import('@/views/product/list.vue'),
    meta: {
      menu: false, // 是否显示底部菜单
      auth: false, // 是否需要验证登录
      navBar: false, // 是否显示头部导航栏
      navBarTitle: '', // 头部导航栏标题
    }
  },
  {
    name: 'ProductInfo',
    path: 'info',
    component: () => import('@/views/product/info.vue'),
    meta: {
      menu: false,
      auth: false,
      navBar: false,
      navBarTitle: '商品详情',
    }
  },
]

export default {
  name: 'Product',
  path: '/product',
  component: {
    template: `<router-view></router-view>`
  },
  children,
  redirect: '/product/list'
}